﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ICSharpCode.TextEditor.Document;

namespace SysSUFront
{
    internal partial class AgentControl : DocumentControl
    {
        public AgentControl()
        {
            InitializeComponent();            
        }

        private void AgentControl_Load(object sender, EventArgs e)
        {
            tbxResult.Document.HighlightingStrategy =
                HighlightingStrategyFactory.CreateHighlightingStrategy("JavaScript");

            tbxResult.IsReadOnly = true;
        }

        private void btnRun_Click(object sender, EventArgs e)
        {
            Run();
        }

        private void btnClear_Click(object sender, EventArgs e)
        {
            //Clear();
        }        

        public void Run()
        {
 
        }

        private void rbt_CheckedChanged(object sender, EventArgs e)
        {
            if (sender == rbtPut)
            {
                optionsGroupBox.Enabled = false;
            }
            else 
            {
                optionsGroupBox.Enabled = true;
            }
        }
    }
}
